#ifndef  __APP_H__
#define  __APP_H__


#include "stdint.h"
#include "string.h"
#include "myqueue.h"

#define  TIMER_MAX    10
#define  ONE_SHUT     0
#define  PER_SHUT     1

enum {
	MONAKE = 1,
	KANGTU,
};

typedef void (*timer_callback)(void);


typedef struct TIMER {
	uint16_t enable;
	uint16_t mode;
	uint16_t rate;
	uint16_t count;
	timer_callback callback_fn;
}TIMER_t;


void soft_ware_init(void);
void timer_run_out_time(void);

#endif

